import ddt
import unittest
import time
from selenium.webdriver.support.ui import Select
from Base.BaseSetings import *
from Business.Student_Management_PZY import woniuboss
from WoniuBossPOM import Student_Management_POM_PZY
# from WoniuBossPOM.Student_Management_POM_PZY import Stu_Sys_Mamagement
# from WoniuBossPOM.All_Management_POM import All_Mamagement


@ddt.ddt
class Us(unittest.TestCase):
    def setUp(self) -> None:
        self.dr = woniuboss()

    # def tearDown(self) -> None:
    #     self.dr.closeBroswer()


    @ddt.file_data(TestData_dir + "search_user.yaml")
    def test_search_user(self,**kwargs):  # 用户管理  用户查询
        result =self.dr.search_user()
        print(result)
        self.assertEqual(result, kwargs.get('assert_info'))


    def test_alterrole(self):  # 修改用户描述
        result = self.dr.alterrole()
        print(result)
        self.assertEqual(result,'我是班主任')



if __name__ == '__main__':
    unittest.main()